Namespace - LJCNetCommon
Parameters
bytes - The byte array.
Returns
The Base64 byte array.
Syntax
C# |
public static Byte[] TextBytesToBase64Bytes(Byte[] bytes)
|
Encodes a byte array to a Base64 byte array. (E)
Example
C# |
using LJCNetCommon;
private static void TextBytesToBase64Bytes()
{
byte[] textBytes = NetCommon.TextToBytes("Text");
byte[] base64Bytes = NetCommon.TextBytesToBase64Bytes(textBytes);
string text = NetCommon.Base64BytesToText(base64Bytes);
}
|
Copyright © Lester J. Clark and Contributors.
Licensed under the MIT License.